package com.dxy.chatserver.config;

/**
 * <p>
 * 事件常量
 * </p>
 *
 * @author yangkai.shen
 * @date Created in 2018-12-18 19:36
 */
public interface Event {
    /**
     * 聊天事件
     */
    String CHAT = "chat";

    /**
     * 广播消息
     */
    String BROADCAST = "broadcast";
    String BroadcastMessage = "BroadcastMessage";

    /**
     * 群聊
     */
    String GROUP = "group";

    /**
     * 发送文本，图片，音频，视频，消息
     */
    String sendMsg = "sendMsg";

    /**
     * 已读回执
     */
    String readReceipt = "readReceipt";

    /**
     * 分页拉取未读消息
     */
    String pullUnreadMsg = "pullUnreadMsg";

    /**
     * 分页拉取未读消息通知
     */
    String pullUnreadMsgNotice = "_pullUnreadMsgNotice";

    /**
     * 查询数据，返回客户端
     */
    String acceptLineMsg = "acceptLineMsg";

    String network = "network";

    String offlineMsg = "offlineMsg";

    String sysNoticeSend = "sysNotice";

    String radioBroadcast = "radioBroadcast";

    String videoChat = "videoChat";

    String join = "__join";

    /**
     * 通知新成员加入房间
     */
    String newPeer = "_new_peer";

    /**
     * 返回房间 成员列表
     */
    String peers = "_peers";

    String iceCandidate = "__ice_candidate";

    String iceCandidateSend = "_ice_candidate";

    String offer = "__offer";

    String offerSend = "_offer";

    String answer = "__answer";

    String answerSend = "_answer";

    String closeRoom = "closeRoom";

    String removePeerSend = "_remove_peer";

    String cancelVideoChat = "cancelVideoChat";

    String matchingChat = "matchingChat";

    String charging = "charging";

    String givingGifts = "givingGifts";

    String giftNotice = "giftNotice";

    String sysNotice = "sysNotice";
    /**
     * 音视频在忙通知
     */
    String avBusying = "avBusying";

    /**
     * 询问客户端视频语言通话状态
     */
    String requestAvBusying = "requestAvBusying";
    /**
     * 连接成功后发送通知事件
     */
    String readyForService = "readyForService";

/*****************************************群组相关[start]********************************************/

    /**
     * 创建群聊
     */
    String createRoom = "createRoom";

    /**
     * 申请加入群聊
     */
    String applyJoinRoom = "applyJoinRoom";


    /**
     * 加入群聊
     */
    String agreeJoin = "agreeJoin";


    /**
     * 群聊
     */
    String roomChat = "roomChat";

    /**
     * 群聊消息发送
     */
    String roomAcceptLineMsg = "roomAcceptLineMsg";


    /**
     * 群聊红包
     */
    String roomRedPacket = "roomRedPacket";

    /**
     * 打开群红包
     */
    String openRoomRedPacket = "openRoomRedPacket";

    /**
     * 创建群聊通知
     */
    String createRoomNotice = "_create_room_notice";

    /**
     * 加入群聊通知
     */
    String joinRoomNotice = "_join_room_notice";

    /**
     * 申请加入群聊通知
     */
    String applyJoinRoomNotice = "_apply_join_room_notice";


    /**
     * 群聊通知
     */
    String roomChatNotice = "_room_chat_notice";

    /**
     * 群聊红包通知
     */
    String roomRedPacketNotice = "_room_red_packet_notice";

    /**
     * 私聊红包通知
     */
    String redPacketNotice = "_red_packet_notice";

    /**
     * 离开群组通知
     */
    String leaveRoom = "_leave_room";


    /**
     * 转让群主通知
     */
    String transferRoomOwner = "_transfer_room_owner";

    /**
     * 禁言通知
     */
    String roomSilent = "_room_silent";
/*****************************************群组相关[end]********************************************/

/*****************************************聊天历史相关[start]********************************************/
    /**
     * 拉取未读聊天列表
     */
    String sessionList = "sessionList";

    /**
     * 推送会话列表事件
     */
    String sessionInfo = "sessionInfo";

    /**
     * 推送会话列表事件 （所有）
     */
    String allSessionInfo = "allSessionInfo";

    /**
     * 推送未读消息事件
     */
    String unreadMsgInfo = "unreadMsgInfo";

    /**
     * 拉取历史消息
     */
    String sessionHistoryMsg = "sessionHistoryMsg";

    /**
     * 推送历史消息事件
     */
    String historyMsg = "historyMsg";
/*****************************************聊天历史相关[end]********************************************/
/*****************************************系统消息相关[start]********************************************/
    /**
     * 关注消息事件
     */
    String followNotice = "followNotice";

    /**
     * 推送关注消息事件
     */
    String hasFollow = "hasFollow";
/*****************************************系统消息相关[end]********************************************/
/*****************************************清空双方聊天记录[start]********************************************/
    /**
     * 清空双方聊天记录
     */
    String clearAllMsg = "clearAllMsg";
/*****************************************清空双方聊天记录[end]********************************************/

    /**
     * 通话米粒不足
     */
    String NOT_SUFFICIENT_MI_LI = "notSufficientMiLi";

    /**
     * 其他端上线--被挤下线
     */
    String OTHER_CLIENT_ONLINE = "otherClientOnline";

    /**
     * app内部推送
     */
    String APP_INTERNAL_PUSH = "appInternalPush";

    /**
     * vip加入交友大厅
     */
    String VIP_JOIN_CHAT_HALL = "vipJoinChatHall";

    /**
     * 全局礼物通知
     */
    String GLOBAL_GIFT_NOTIFICATION = "globalGiftNotification";

    /**
     * app内部弹窗通知
     */
    String APP_POPUP_WINDOW = "appPopupWindow";

}
